package com.park.web.controller;

import com.park.web.core.wrapper.WrapMapper;
import com.park.web.core.wrapper.Wrapper;
import com.park.web.model.domain.basSystemManage;
import com.park.web.model.domain.basSystemResource;
import com.park.web.service.basSystemDataDictService;
import com.park.web.service.basSystemResourceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

import java.nio.file.WatchService;
import java.util.ArrayList;
import java.util.List;

@RestController
@Api(value = "WEB - ParkDataDictController", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@RequestMapping(value = "parkDataDict", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class ParkDataDictController {
    @Autowired
    basSystemDataDictService ibasSystemDataDictService;

    @GetMapping("/findDataDictByModelKey")
    @ApiOperation(value = "修改数据字典", notes = "修改数据字典")
    public Wrapper QueryById(@PathVariable("modelKey") String modelKey) {
        var entity = ibasSystemDataDictService.findDataDictListByParentKey(modelKey);
        return WrapMapper.okWithoutMessage(entity);
    }
}
